
package com.ruoyi.config;

import com.ruoyi.order.service.IRemoteOrderService;
import com.ruoyi.order.service.impl.OrderServiceImpl;
import com.ruoyi.goodsDetail.service.IRemoteOrderGoodsDetailService;
import com.ruoyi.goodsDetail.service.impl.OrderGoodsDetailServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RemoteServiceConfig {

    @Bean
    public IRemoteOrderService remoteOrderService(OrderServiceImpl orderService) {

        return orderService;
    }

    @Bean
    public IRemoteOrderGoodsDetailService remoteOrderGoodsDetailService(OrderGoodsDetailServiceImpl orderGoodsDetailService) {
        return orderGoodsDetailService;
    }
}
